package com.citymanage.demo.mapper.worker;

import com.citymanage.demo.po.worker.Worker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WorkerMapper {
    Worker getInfo(@Param("account")String account, @Param("password")String password);
    Worker updateWorker(@Param("key") Integer key, @Param("account")String account,@Param("phone")String phone,  @Param("password") String password );
    List<Worker> findAll(@Param("key") Integer key);
    List<Worker>selectWorker();
    Worker selectScore(@Param("key")Integer key);
    void updateWscore(@Param("key")Integer key,@Param("wscore")Integer wscore);
    List<Worker>workerScore();
    void del(int pid);
    void addWorker(@Param("key") Integer key, @Param("account")String account,@Param("phone")String phone,  @Param("password") String password );
}
